HTMLify
style.css
Views: 17 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | /* ===== Google Font Import - Poppins ===== */ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap'); *{ margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; } body{ height: 100vh; display: flex; background: #4070f4; align-items: center; justify-content: center; } .container{ position: relative; max-width: 500px; width: 100%; background: #fff; margin: 0 15px; padding: 10px 20px; border-radius: 7px; } .container .skill-box{ width: 100%; margin: 25px 0; } .skill-box .title{ display: block; font-size: 14px; font-weight: 600; color: #333; } .skill-box .skill-bar{ height: 8px; width: 100%; border-radius: 6px; margin-top: 6px; background: rgba(0,0,0,0.1); } .skill-bar .skill-per{ position: relative; display: block; height: 100%; width: 90%; border-radius: 6px; background: #4070f4; animation: progress 0.4s ease-in-out forwards; opacity: 0; } .skill-per.css{ width: 70%; animation-delay: 0.1s; } .skill-per.javascript{ width: 50%; animation-delay: 0.2s; } .skill-per.nodejs{ width: 30%; animation-delay: 0.3s; } @keyframes progress { 0%{ width: 0; opacity: 1; } 100%{ opacity: 1; } } .skill-per .tooltip{ position: absolute; right: -14px; top: -28px; font-size: 9px; font-weight: 500; color: #fff; padding: 2px 6px; border-radius: 3px; background: #4070f4; z-index: 1; } .tooltip::before{ content: ''; position: absolute; left: 50%; bottom: -2px; height: 10px; width: 10px; z-index: -1; background-color: #4070f4; transform: translateX(-50%) rotate(45deg); } |